package com.sojson.config.init;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 自定义初始化类(必须通过@Bean注解注入,否则会提前执行,导致出现一些空指针异常)
 * 
 * @author liu
 * @date 2021-09-13
 */
@Configuration
public class WebInitConfig {

    @Bean
    public WebInit webInit() {
        return new WebInit();
    }

}